	package com.xlh.openai.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * 
 * @author 1280251739@qq.com
 * @email sunlightcs@gmail.com
 * @date 2023-03-31 21:29:05
 */
@Data
@TableName("`order`")
@ApiModel("OrderEntity")
public class OrderEntity implements Serializable {

	private static final long serialVersionUID = 1L;
	@TableId(type = IdType.AUTO)
	@ApiModelProperty("主键值")
	private Integer id;

	@ApiModelProperty("用户ID")
	private Integer userId;

	@ApiModelProperty("产品OD")
	private Integer productId;

	@ApiModelProperty("订单编号")
	private String outTradeNo;

	@ApiModelProperty("购买数量")
	private Integer quantity;

	@ApiModelProperty("总价格")
	private BigDecimal totalPrice;

	@ApiModelProperty("订单生成时间")
	private Date orderTime;

	@ApiModelProperty("订单失效时间")
	private Date timeExpire;

	@ApiModelProperty("订单是否失效")
	private Integer isExpire;

	@ApiModelProperty("支付状态")
	private Integer payStatus;

	@ApiModelProperty("购买产品时产品的详细信息Json")
	private String productInfo;

}
